hackerrank between two sets problem solution

visit shbcf.ru